import Http from 'utils/request'

const context = process.env.VUE_APP_CONSOLE_PATH

const API = {
  queryOwnerPeopleList: '/owner/queryOwnerPeopleList', // 查询车主列表
  queryCarListByPeople: '/owner/queryCarListByPeople', // 根据车主查询车辆信息
  queryPeopleByCarNumber: '/owner/queryPeopleByCarNumber', // 根据车牌查询车主信息
  ownerPeopleBingCar: '/owner/ownerPeopleBingCar' // 绑定车辆
}

/**
 * 通用接口请求方法
 * @param {*} param
 */
export const fetch = (url, param = {}, opt = {}) => Http.fetch(context + API[url], param, opt)
